<#import "/common/function.ftl" as fn>
<@fn.header _title="核对家庭基本信息">
<script language="javascript" type="text/javascript" src="${base}/web/js/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="${base}/web/js/JScript.js"></script>
</@fn.header>
<body>
    <div class="rightBk">
    	<@fn.position _value="信息录入 &gt;&gt; 核对家庭基本信息" /> 
        <!-- 选项卡 -->
        <div style="margin:0px 0;height:30px">
        	<ul class="tab">
            	<li class="visited"><a href="/infoInput/familyBasicInfo/${checkTotal.id}">核对家庭基本信息</a></li>
            	<li><a href="/infoInput/familyMemberInfo/${checkTotal.id}">核对家庭成员基本信息</a></li>
            	<li><a href="/infoInput/familyMemberIncome/${checkTotal.id}">家庭成员可支配收入</a></li>
           	 	<li><a href="memberProperty.html">家庭成员财产</a></li>
            	<li><a href="sendCheck.html">发送街镇核实</a></li>
        	</ul>
        </div>
        <!-- title -->
       <div class="title">
            <div class="title-middle">
                <div class="title-left">
                </div>
                <div class="title-caption">
                    委托信息</div>
                <div class="title-right">
                </div>
            </div>
        </div>
        <!-- table -->
        <form action="/infoInput/updateFamilyBasicInfo/" method="POST" name="familyBasicForm" id="familyBasicForm">
        <table class="table1">
            <colgroup>
                <col class="GridCaption" style="width:12%; background-color: #eef3f7;" />
                <col style="width: 250px;" />
                <col class="GridCaption" style="width:12%; background-color: #eef3f7;" />
                <col />
            </colgroup>
            <tr>
                <td>
                    业务类型</td>
                <td>
                    <select name="entrustType" id="Select3" class="select1">
                        <option selected="selected" value="01">低保核对</option>
                        <option value="02">经济适用住房</option>
                        <option value="03">廉租住房</option>
                    </select></td>
                <td>
                    委托机构</td>
                <td>
                    <select name="entrustOrg" id="Select2" class="select1">
                        <option selected="selected" value="01">民政局</option>
                        <option value="02">住房保障房屋管理局</option>
                    </select></td>
            </tr>
            <tr>
                <td>
                    证件类型</td>
                <td>
                    <select id="Select1" name="entrustIdType" class="select1">
                        <option>居民身份证</option>
                    </select></td>
                <td>
                    证件号码</td>
                <td>
                    <input name="entrustIdNumber" type="text" id="txtMobileJSF1" class="input4" maxlength="30"
                        value="13916484820" /></td>
            </tr>
            <tr>
                <td>
                    委托人</td>
                <td>
                    <input name="entrustPerson" type="text" id="Text6" class="input4" value="邵梅芳" />
                </td>
                <td>
                    委托编号</td>
                <td>
                    <input name="entrustNumber" type="text" id="Text8" class="input4" 
                        value="DB000000001" /></td>
            </tr>
            <tr>
                <td>
                    委托日期</td>
                <td>
                    <input name="entrustDate" type="text" id="txtReciveDate0" class="input4" 
                        value="2011-04-01" onclick="WdatePicker()"/>
                </td>
                <td>
                    联系电话</td>
                <td>
                    &nbsp;<input name="entrustPhone" type="text" id="txtMobileJSF0" class="input4" maxlength="30"
                        value="13916484820" /></td>
            </tr>
            <tr>
                <td>
                    户籍所在地</td>
                <td colspan="3">
                    <select name="entrustHouseholdLevel3" id="Select6" class="select1">
                        <option selected="selected" value="01">请选择区县</option>
                        <option value="02">和平区</option>
                    </select>
                    <select name="entrustHouseholdLevel4" id="Select7" class="select1">
                        <option selected="selected" value="01">请选择街镇</option>
                    </select>
                    <select name="entrustHouseholdLevel5" id="Select8" class="select1">
                        <option selected="selected" value="01">请选择社区</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    现居住地址
                </td>
                <td colspan="3">
                    <select name="entrustLivingLevel3" id="Select9" class="select1">
                        <option selected="selected" value="01">请选择区县</option>
                        <option value="02">和平区</option>
                    </select>
                    <select name="entrustLivingLevel4" id="Select10" class="select1">
                        <option selected="selected" value="01">请选择街镇</option>
                    </select>
                    <select name="entrustLivingLevel5" id="Select11" class="select1">
                        <option selected="selected" value="01">请选择社区</option>
                    </select>
                </td>
            </tr>
            </table>
            <br />
        <div class="title">
            <div class="title-middle">
                <div class="title-left">
                </div>
                <div class="title-caption">
                    申请人代表基本信息</div>
                <div class="title-right">
                </div>
            </div>
        </div>
        <!-- table -->
        <table class="table1">
            <colgroup>
                <col class="GridCaption" style="width:12%; background-color: #eef3f7;" />
                <col style="width: 250px;" />
                <col class="GridCaption" style="width:12%; background-color: #eef3f7;" />
                <col class="GridCaption" style="width:12%; background-color: #eef3f7;" />
                <col />
            </colgroup>
            <tr>
            <td>证件类型</td>
           		<td>
	            <select name="familyMemberIdType" id="ddlCertType0" class="select1">
	                <option value="01" selected="selected">身份证</option>
	                <option value="02">护照</option>
	                <option value="03">居住证</option>
	                <option value="04">军官证</option>
	                <option value="05">出生证</option>
	                <option value="06">绿卡</option>
	                <option value="07">港澳通行证</option>
	                <option value="08">其他证件</option>
            	</select>
            	</td>
            	<td colspan="2">证件号</td>
            	<td><input name="familyMemberIdNumber" type="text" id="txtCertCodeJSF0" class="input4" value="${checkTotal.familyMember.idName}"/></td>
            </tr>
            <tr>
                <td>申请人姓名</td>
                <td><input name="familyMemberName" type="text" id="Text6" class="input4" value="${checkTotal.familyMember.name}"/></td>
                <td colspan="2">民族</td>
                <td>
                    </select><select name="nation" id="Select8" class="select1">
                        <option value="01"<#if !(nation??)> selected</#if>>请选择民族</option>
                        <#list nations as _nation>
                        	<option value="${_nation.code}">${_nation.name}</option>
                        </#list>
                    </select>
                </td>
            </tr>
            <tr>
                <td>政治面貌</td>
                <td>
                    </select><select name="familyMemberPoliticalStatus" id="Select8" class="select1">
                      <#list politicalStatus as _politicalStatus>
                        	<option value="${_politicalStatus.code}">${_politicalStatus.name}</option>
                      </#list>
                    </select>
                <td colspan="2">婚姻状况 </td>
                <td>
                    </select><select name="familyMemberMaritalStatus" id="Select8" class="select1">
                        <option value="01" selected="selected">未婚</option>
                        <option value="02">已婚</option>
                        <option value="03">离婚</option>
                        <option value="04">丧偶</option>                        
                    </select>
                </td>
            </tr>
            
            <tr>
			    <td>固定电话</td>
                <td><input name="familyMemberPhone" type="text" id="Text6" class="input4" maxlength="16" /></td>
                <td colspan="2">移动电话 </td>
                <td><input name="familyMemberMobile" type="text" id="txtMobileJSF0" class="input4" maxlength="16" /></td>
            </tr>            
            <tr>
                <td>户籍所在地</td>
                <td colspan="4">
                    <select id="Select6" class="select1">
                        <option selected="selected" value="01">请选择省份</option>
                        <option value="02">和平区</option>
                    </select><select name="ddlCertType5" id="Select7" class="select1">
                        <option selected="selected" value="01">请选择地市</option>
                    </select><select name="householdDistrictCode" id="Select8" class="select1">
                        <option selected="selected" value="01">请选择区县</option>
                    </select>
                     <input name="familyMember.householdAddress" type="text" id="txtMobileJSF0" class="input4" maxlength="50" value="请输入街道" />
                </td>
            </tr>       
            <tr>
                <td>现居住地址 </td>
                <td colspan="4">
                    <select name="ddlCertType4" id="Select6" class="select1">
                        <option selected="selected" value="01">沈阳市</option>
                    </select><select name="ddlCertType5" id="Select7" class="select1">
                        <option selected="selected" value="01">请选择区县</option>
                    </select><select name="livingDistrictCode" id="Select8" class="select1">
                        <option selected="selected" value="01">请选择街镇</option>
                    </select>
                     <input name="familyMember.livingAddress" type="text" id="txtMobileJSF0" class="input4" maxlength="50" value="请输入街道" />
                </td>
            </tr>

            <tr>
                <td>现居住地开始居住时间</td>
                <td><input name="familyMember.startDateLiving" type="text" id="Text6" class="input4" /></td>
                <td colspan="2">文化程度 </td>
                <td>
                	</select><select name="familyMember.education" id="txtMobileJSF0" class="select1">
                      <#list educations as education>
                        	<option value="${education.code}">${education.name}</option>
                      </#list>
                    </select>
               </td>
            </tr>

            <tr>
                <td>健康状况</td>
                <td><input name="familyMemberHealthStatus" type="text" id="txtCertCodeJSF1" class="input4" /></td>
                <td colspan="2">劳动能力丧失状况</td>
                <td><input name="familyMemberLaborLossStatus" type="text" id="Text10" class="input4" /></td>
            </tr>
        </table>
            <br />
             <!-- title -->
        <div class="title marginTop15">
            <div class="title-middle">
                <div class="title-left">
                </div>
                <div class="title-caption">
                    核对家庭经济状况</div>
                <div class="title-right">
                </div>
            </div>
        </div>
         <!-- table -->
        <table class="tableCenter" style="text-align:left;vertical-align:middle;">
            <tr>
                <td>
                    截止<input name="checkTotal.dateApprovedProperty" id="Text1" type="text" value="${checkTotal.dateApprovedProperty?string('yyyy-MM-dd')}" onclick="WdatePicker()"/>家庭人均财产为<input id="Text2" 
                        name="${checkTotal.reportedPropertyAmount}" type="text" value="5666.00" />元
                </td>
            </tr>
            <tr>
                <td>
                    <input name="checkTotal.startDateApprovedIncome" id="Text3" type="text" value="${checkTotal.startDateApprovedIncome?string('yyyy-MM-dd')}" onclick="WdatePicker()"/>至<input id="Text4" 
                        name="checkTotal.endDateApprovedIncome"  type="text" value="${checkTotal.endDateApprovedIncome?string('yyyy-MM-dd')}" onclick="WdatePicker()"/>的家庭人均可支配收入为:<input id="Text5" 
                        name="checkTotal.reportedIncomeAmount" type="text" value="${checkTotal.reportedIncomeAmount}" />元</td>
            </tr>
        </table>
        <!-- title -->
     
        <!-- button -->
        <div class="marginTop15 alignCenter">
            <img src="${base}/web/img/btnSave.gif" alt="" id="saveFamilyBasicInfo"/>
            <img src="${base}/web/img/btnNext.gif" alt="" onclick="javascript:nextStep();"/>
        </div>
        <input type="hidden" name="checkTotalId" value="${checkTotal.id}"/>
        </form>
    </div>
    <script language="javascript"> 
    $("#saveFamilyBasicInfo").click(function() {
    var url = "/infoInput/updateFamilyBasicInfo/";
    $.ajax({
           type: "POST",
           url: url,
           data: $("#familyBasicForm").serialize(),
           error: function()
           {
               alert("出错啦！");
           },
           success: function(data)
           {
               alert("保存成功！");
           }
         });

    return false;
	});
	
	function nextStep(){
		window.location.href="/infoInput/familyMemberInfo/${checkTotal.id}"; 
	}
	
    </script>
  
</body>
</html>